import Vue from 'vue';
import VueRouter from 'vue-router';
import Home from '../views/Home.vue';
import Login from '../views/login.vue';
import Bigview from '../views/bigview.vue';
import Ranking from '../views/ranking.vue';
import Index from '../views/index.vue';
Vue.use(VueRouter);

const routes = [
  {
    path: '/index',
    name: 'index',
    component: Index,
    meta: {
      title: '加载中',
    },
  },
  {
    path: '/',
    name: 'home',
    component: Home,
    meta: {
      title: '加载中',
    },
  },
  {
    path: '/login',
    name: 'login',
    component: Login,
    meta: {
      title: '登录',
    },
  },
  {
    path: '/bigview',
    name: 'bigview',
    component: Bigview,
    meta: {
      title: '',
    },
  },
  {
    path: '/ranking',
    name: 'ranking',
    component: Ranking,
    meta: {
      title: '参与记录',
    },
  },
];

const router = new VueRouter({
  routes,
});

export default router;
